import { FormItemProps } from "element-plus";

export declare namespace OCForm {
  export interface FormColumn {
    item: FormItemProps;
    config: FormConfig;
    attr: FormAttr;
  }
  export interface FormConfig {
    showTips: boolean;
    tipCont: string;
    fieldName: {
      value: string;
      label: string;
      children: string;
    };
  }
  export interface FormAttr {
    type: FormSearchType;
    prop: any;
  }
  export type FormSearchType =
    | "input"
    | "input-number"
    | "select"
    | "select-v2"
    | "tree-select"
    | "cascader"
    | "date-picker"
    | "time-picker"
    | "time-select"
    | "switch"
    | "slider";
}
